/*
 *  Netzpult - Your desk on the web
 *  Copyright (C) 2011  Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */

package de.uhilger.netzpult.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import de.uhilger.netzpult.shared.Document;
import de.uhilger.netzpult.shared.Folder;

/**
 * 
 * @author Copyright (c) Ulrich Hilger, http://uhilger.de
 * @author Published under the terms and conditions of
 * the <a href="http://www.gnu.org/licenses/" target="_blank">GNU General Public License</a>
 */
public interface PublicServiceAsync extends BoundTreeServiceAsync {

	void getDocument(String owner, String id, AsyncCallback<Document> callback);

	//void setOwner(String owner, AsyncCallback<Void> callback);

	void getParameter(String parameterName, AsyncCallback<String> callback);

	void getDefaultOwner(AsyncCallback<String> callback);

	void getFoldersContaining(String owner, int documentId, AsyncCallback<List<Folder>> callback);

	void getPathToFolder(Folder folder, AsyncCallback<List<Folder>> callback);

	void getDocumentForPath(String owner, String path, AsyncCallback<Document> callback);

	void findDocuments(String owner, String searchItem, AsyncCallback<List<Document>> callback);

	void getDocumentOwner(int docId, AsyncCallback<String> callback);

	void getDefaultDocument(AsyncCallback<String> callback);

}
